package com.lsj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lsj.common.utils.PageUtils;
import com.lsj.gulimall.product.entity.AttrGroupEntity;
import com.lsj.gulimall.product.vo.AttrGroupRelationVo;
import com.lsj.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.lsj.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lsj
 * @email 1326646663@qq.com
 * @date 2022-01-06 11:30:26
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    AttrGroupEntity getInfoById(Long attrGroupId);

    Long[] getCategroyIds(Long categroyId, List<Long> categroyIds);

    List<AttrVo> getGroupAttrRelation(Long attrGroupId);

    void deleteRelation(AttrGroupRelationVo[] ids);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<AttrGroupWithAttrsVo> getGroupWithAttr(Long catelogId);
}

